package com.jnxx.task.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.util.Date;

/**
 * shopReport对象 shop_report
 * 
 * @author sh
 * @date 2024-01-08
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class ShopReport extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 店铺id */
    @Excel(name = "店铺id")
    private Long shopId;

    /** 负责人 */
    @Excel(name = "负责人")
    private Long staffId;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date creatTime;

    /** 完成状态  申请单状态  0-未完成  1-完成 2-超时完成 10-做查询用，查询已完成的*/
    @Excel(name = "完成状态")
    private String status;

    /** 完成时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "完成时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date finishTime;
    /**
     * 提交店铺数据日期
     */
    private LocalDate taskTime;

    /** 成交总额 */
    @Excel(name = "成交总额")
    private BigDecimal gmv;

    /** 利润 */
    @Excel(name = "利润")
    private BigDecimal profit;

    private Shop shop;
    // 负责人名称
    private String headName;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setShopId(Long shopId) 
    {
        this.shopId = shopId;
    }

    public Long getShopId() 
    {
        return shopId;
    }
    public void setStaffId(Long staffId) 
    {
        this.staffId = staffId;
    }

    public Long getStaffId() 
    {
        return staffId;
    }
    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setFinishTime(Date finishTime) 
    {
        this.finishTime = finishTime;
    }

    public Date getFinishTime() 
    {
        return finishTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("shopId", getShopId())
            .append("staffId", getStaffId())
            .append("creatTime", getCreatTime())
            .append("status", getStatus())
            .append("finishTime", getFinishTime())
            .append("gmv", getGmv())
            .append("profit", getProfit())
            .toString();
    }
}
